package com.yq.bootdemo.mapper;

import com.yq.bootdemo.entity.RoomEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoomMapper{
    List<RoomEntity> selectAll();
    int insertOne(@Param("rNum") String rNum, @Param("rType") int rType);

    RoomEntity selectOne(@Param("id") int id);

    int delOne(Integer id);
    int rCount(int r_type);

    List<RoomEntity> selectByType(@Param("id") Integer id);

    int stay(@Param("rNum") Integer rNum,@Param("rDel") Integer rDel);
}
